package com.ftg.wymall.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ftg.wymall.admin.entity.UmsMenu;
import com.ftg.wymall.admin.vo.UmsMenuTreeVo;
import com.ftg.wymall.comm.vo.RespMessUtil;

import java.util.List;

/**
 * <p>
 * 后台菜单服务类
 * </p>
 *
 * @author kangjx
 * @since 2023-10-20
 */
public interface IUmsMenuService extends IService<UmsMenu> {

    /**
     * 解析token用adminid来查看当用户的菜单
     * @param token  信息
     * @return  resmessutil
     */
    RespMessUtil<List<UmsMenuTreeVo>> showMenuByAdminId(String token);

    RespMessUtil<List<UmsMenuTreeVo>> allMenuForTree();
}
